home *** CD-ROM | disk | FTP | other *** search
- defineps scorePhaseCities(int cnt,total | boolean *result)
- %
- %
- % Copyright 1992, Stefanos Kiakas. All rights reserved.
- %
- % You may not delete this notice.
- %
- %
- % this functiion returns a value to synchronize the output
- % between the program and the DPS engine
-
- /x 200 def % x start position
- /y 250 def % y start position
- /cstr 2 string def % declare space for a string of length 2
- /ttlstr 7 string def % declare space for a string of length 7
-
- /Times-Roman findfont % select and set up font
- 15 scalefont
- setfont
-
- total ttlstr cvs % initialize ttlstr to zero
- cnt cstr cvs % let cstr equal the string of count
-
- 1 setgray % erasde space to be printed
- newpath
- x y moveto
- 0 20 rlineto
- 150 0 rlineto
- 0 -20 rlineto
- -150 0 rlineto
- closepath
- fill
-
- 0 setgray % set colour ro black
- x y moveto
- ( x ) show % display score
- cstr show
- ( x 200 = ) show
- ttlstr show
- 20000 {} repeat
- flushgraphics
- true result
- endps